﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if DOT_NET
using Microsoft.VisualStudio.TestTools.UnitTesting;
#else
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
#endif
using StyleMVVM.UnitTests.TestClasses.SimpleObjects;

namespace StyleMVVM.UnitTests.DependencyInjection
{
	[TestClass]
	public class InheritImportTests : BaseTestClass
	{
		[TestMethod]
		public void InheritPropertyImportTest()
		{
			InheritPropertyClass propertyClass = Container.Locate("InheritPropertyClass") as InheritPropertyClass;

			Assert.IsNotNull(propertyClass);
			Assert.IsNotNull(propertyClass.TestInterface);
			Assert.IsNotNull(propertyClass.SecondTestInterface);
		}

		[TestMethod]
		public void InheritMethodImportTest()
		{
			InheritImportMethodClass inheritImportMethodClass =
				Container.Locate("InheritImportMethodClass") as InheritImportMethodClass;

			Assert.IsNotNull(inheritImportMethodClass);
			Assert.IsNotNull(inheritImportMethodClass.TestInterface);
			Assert.IsNotNull(inheritImportMethodClass.SecondTestInterface);
		}
	}
}